package mystudy.oop;

public class animal {
    public static void main(String[] args)
    {
        String color;
        int legs;
        double weight;
        void eating()
        {
            System.out.println("它在进食。");
        }
        void self()
        {
            System.out.println("it`s  color:%s \t it`s legs:%d  \t it`s weight:%f,this.color,this.lags,this.weight");
        }
    }
}
